package builder.banks;

import builder.AbstractOperations;
import builder.BankDataModel;
import builder.OperationNotAllowedException;

/**
 * Created by Vyacheslav on 04.07.2014.
 */
public class PumbOperations implements AbstractOperations {

    private String bankPhone = "4682";

    @Override
    public String getBalance(BankDataModel model) {
        return String.valueOf(model.getAccessCode());
    }

    @Override
    public String blockCard(BankDataModel model) {
        return "BLOCK";
    }

    @Override
    public String getReport(BankDataModel model) {
        throw new OperationNotAllowedException("String msg");
    }

    @Override
    public String moneyTransfer(BankDataModel model) {
        throw new UnsupportedOperationException();
    }

    @Override
    public String unblockCard(BankDataModel model) {
        throw new UnsupportedOperationException();
    }

    @Override
    public String mobileTransfer(BankDataModel model) {
        throw new UnsupportedOperationException();
    }

    @Override
    public String getBankPhone() {
        return bankPhone;
    }
}
